package com.cssw.fyzb.core.dao.video;

import com.cssw.fyzb.core.model.dodb.CmfVideoHotDef;
import com.ydn.dbframe.plugin.activerecord.Page;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author YangYiQun
 */
public interface VideoHotDefDao {

    /**
     * 根据主键查询
     *
     * @param hotId
     * @return
     */
    CmfVideoHotDef findById(Long hotId);

    /**
     * 查看热点定义数据
     *
     * @return
     */
    List<CmfVideoHotDef> list();

    Page<CmfVideoHotDef> adminList(Integer page, Integer limit, Map param);

    Boolean save(Integer hotValue, String hotName, BigDecimal price, Integer hotTime, String hotOprName, String hotOprCode, Long sysOperId);

    Boolean update(Long hotId, Integer hotValue, String hotName, BigDecimal price, Integer hotTime, String hotOprName, String hotOprCode, Long sysOperId);

    Boolean delete(Long hotId, Long sysOperId);
}
